.class public Lcom/brixd/niceapp/activity/GuideActivity;
.super Landroid/support/v4/app/FragmentActivity;
.source "GuideActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/GuideActivity$GuideAdapter;
    }
.end annotation


# static fields
.field public static final ANIMATE_DURATION:I = 0x258


# instance fields
.field private mImgIndicator1:Landroid/widget/ImageView;

.field private mImgIndicator2:Landroid/widget/ImageView;

.field private mIndicatorArea:Landroid/view/View;

.field private mLastPosition:I

.field private mStartBtn:Landroid/widget/Button;

.field private mViewPager:Landroid/support/v4/view/ViewPager;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 35
    invoke-direct {p0}, Landroid/support/v4/app/FragmentActivity;-><init>()V

    .line 267
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/GuideActivity;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mIndicatorArea:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/GuideActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/GuideActivity;->animateBtnOut()V

    return-void
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/activity/GuideActivity;)Landroid/widget/ImageView;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mImgIndicator1:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/activity/GuideActivity;)Landroid/widget/ImageView;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mImgIndicator2:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/activity/GuideActivity;)Landroid/support/v4/view/ViewPager;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    return-object v0
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/activity/GuideActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    iget v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mLastPosition:I

    return v0
.end method

.method static synthetic access$502(Lcom/brixd/niceapp/activity/GuideActivity;I)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;
    .param p1, "x1"    # I

    .prologue
    .line 35
    iput p1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mLastPosition:I

    return p1
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/activity/GuideActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/GuideActivity;->animateBtnIn()V

    return-void
.end method

.method static synthetic access$700(Lcom/brixd/niceapp/activity/GuideActivity;)Landroid/widget/Button;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/GuideActivity;

    .prologue
    .line 35
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mStartBtn:Landroid/widget/Button;

    return-object v0
.end method

.method private animateBtnIn()V
    .registers 5

    .prologue
    const-wide/16 v2, 0xc8

    .line 215
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mStartBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/GuideActivity$6;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/GuideActivity$6;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;)V

    invoke-static {v0, v2, v3, v1}, Lcom/brixd/niceapp/animator/AnimatorUtils;->animViewFadeIn(Landroid/view/View;JLandroid/animation/Animator$AnimatorListener;)Landroid/animation/Animator;

    .line 238
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mIndicatorArea:Landroid/view/View;

    new-instance v1, Lcom/brixd/niceapp/activity/GuideActivity$7;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/GuideActivity$7;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;)V

    invoke-static {v0, v2, v3, v1}, Lcom/brixd/niceapp/animator/AnimatorUtils;->animViewFadeOut(Landroid/view/View;JLandroid/animation/Animator$AnimatorListener;)Landroid/animation/Animator;

    .line 260
    return-void
.end method

.method private animateBtnOut()V
    .registers 5

    .prologue
    const-wide/16 v2, 0xc8

    .line 167
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mIndicatorArea:Landroid/view/View;

    new-instance v1, Lcom/brixd/niceapp/activity/GuideActivity$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/GuideActivity$4;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;)V

    invoke-static {v0, v2, v3, v1}, Lcom/brixd/niceapp/animator/AnimatorUtils;->animViewFadeIn(Landroid/view/View;JLandroid/animation/Animator$AnimatorListener;)Landroid/animation/Animator;

    .line 190
    iget-object v0, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mStartBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/GuideActivity$5;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/GuideActivity$5;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;)V

    invoke-static {v0, v2, v3, v1}, Lcom/brixd/niceapp/animator/AnimatorUtils;->animViewFadeOut(Landroid/view/View;JLandroid/animation/Animator$AnimatorListener;)Landroid/animation/Animator;

    .line 212
    return-void
.end method

.method private setViewPagerScrollSpeed(Landroid/support/v4/view/ViewPager;I)V
    .registers 8
    .param p1, "viewPager"    # Landroid/support/v4/view/ViewPager;
    .param p2, "duration"    # I

    .prologue
    .line 156
    :try_start_0
    const-class v2, Landroid/support/v4/view/ViewPager;

    const-string v3, "mScroller"

    invoke-virtual {v2, v3}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v0

    .line 157
    .local v0, "mScroller":Ljava/lang/reflect/Field;
    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/reflect/Field;->setAccessible(Z)V

    .line 158
    new-instance v1, Lcom/brixd/niceapp/control/ViewPagerScroller;

    invoke-virtual {p1}, Landroid/support/v4/view/ViewPager;->getContext()Landroid/content/Context;

    move-result-object v2

    new-instance v3, Landroid/view/animation/OvershootInterpolator;

    const v4, 0x3f19999a

    invoke-direct {v3, v4}, Landroid/view/animation/OvershootInterpolator;-><init>(F)V

    invoke-direct {v1, v2, v3}, Lcom/brixd/niceapp/control/ViewPagerScroller;-><init>(Landroid/content/Context;Landroid/view/animation/Interpolator;)V

    .line 159
    .local v1, "scroller":Lcom/brixd/niceapp/control/ViewPagerScroller;
    invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V

    .line 160
    invoke-virtual {v1, p2}, Lcom/brixd/niceapp/control/ViewPagerScroller;->setDuration(I)V
    :try_end_23
    .catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_23} :catch_24
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_23} :catch_28
    .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_23} :catch_26

    .line 164
    .end local v0    # "mScroller":Ljava/lang/reflect/Field;
    .end local v1    # "scroller":Lcom/brixd/niceapp/control/ViewPagerScroller;
    :goto_23
    return-void

    .line 161
    :catch_24
    move-exception v2

    goto :goto_23

    :catch_26
    move-exception v2

    goto :goto_23

    :catch_28
    move-exception v2

    goto :goto_23
.end method


# virtual methods
.method public onBackPressed()V
    .registers 1

    .prologue
    .line 265
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 6
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/4 v3, 0x1

    .line 48
    invoke-super {p0, p1}, Landroid/support/v4/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V

    .line 49
    invoke-virtual {p0, v3}, Lcom/brixd/niceapp/activity/GuideActivity;->requestWindowFeature(I)Z

    .line 50
    const v1, 0x7f03005a

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/GuideActivity;->setContentView(I)V

    .line 52
    const v1, 0x7f0a012f

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/GuideActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mStartBtn:Landroid/widget/Button;

    .line 53
    const v1, 0x7f0a012b

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/GuideActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mIndicatorArea:Landroid/view/View;

    .line 54
    const v1, 0x7f0a012c

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/GuideActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mImgIndicator1:Landroid/widget/ImageView;

    .line 55
    const v1, 0x7f0a012d

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/GuideActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mImgIndicator2:Landroid/widget/ImageView;

    .line 57
    const v1, 0x7f0a00a5

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/GuideActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/support/v4/view/ViewPager;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    .line 58
    new-instance v0, Lcom/brixd/niceapp/activity/GuideActivity$GuideAdapter;

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/GuideActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/brixd/niceapp/activity/GuideActivity$GuideAdapter;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;Landroid/support/v4/app/FragmentManager;)V

    .line 59
    .local v0, "adapter":Lcom/brixd/niceapp/activity/GuideActivity$GuideAdapter;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    invoke-virtual {v1, v0}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 60
    iget-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    const/16 v2, 0x258

    invoke-direct {p0, v1, v2}, Lcom/brixd/niceapp/activity/GuideActivity;->setViewPagerScrollSpeed(Landroid/support/v4/view/ViewPager;I)V

    .line 62
    iget-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mStartBtn:Landroid/widget/Button;

    new-instance v2, Lcom/brixd/niceapp/activity/GuideActivity$1;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/GuideActivity$1;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 75
    iget-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    new-instance v2, Lcom/brixd/niceapp/activity/GuideActivity$2;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/GuideActivity$2;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;)V

    invoke-virtual {v1, v2}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 135
    iget-object v1, p0, Lcom/brixd/niceapp/activity/GuideActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    new-instance v2, Lcom/brixd/niceapp/activity/GuideActivity$3;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/GuideActivity$3;-><init>(Lcom/brixd/niceapp/activity/GuideActivity;)V

    invoke-virtual {v1, v3, v2}, Landroid/support/v4/view/ViewPager;->setPageTransformer(ZLandroid/support/v4/view/ViewPager$PageTransformer;)V

    .line 151
    return-void
.end method
